package com.dongwu.manager.web;

import com.dongwu.common.web.BaseController;
import com.dongwu.manager.entity.Advertising;
import com.dongwu.manager.service.AdvertisingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 营销工具
 * @author xyj
 *
 */
@Controller
@RequestMapping("/manager/ads")
public class AdvertisingController extends BaseController<Advertising, String> {

    @Autowired
    private AdvertisingService advertisingService;

	/**
	 * 图片广告列表
	 *
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/advertList")
	public String advertList(Model model) {
		return getPagePath("advert-list");
	}
	/**
	 * 添加图片广告
	 *
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/advertAdd")
	public String advertAdd(Model model) {
		return getPagePath("advert-add");
	}
	/**
	 * 编辑图片广告
	 *
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/advertEdit/{id}")
	public String advertEdit(Model model) {
		return getPagePath("advert-edit");
	}
    
	/**
	 * 优惠券列表
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/couponList")
	public String couponList(Model model) {
		return getPagePath("coupon-list");
	}
	/**
	 * 添加优惠券
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/couponAdd")
	public String couponAdd(Model model) {
		return getPagePath("coupon-add");
	}
	/**
	 * 编辑优惠券
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/couponEdit/{id}")
	public String couponEdit(Model model) {
		return getPagePath("coupon-edit");
	}
	/**
	 * 视频列表
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/videoList")
	public String videoList(Model model) {
		return getPagePath("video-list");
	}
	/**
	 * 添加视频广告
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/videoAdd")
	public String videoAdd(Model model) {
		return getPagePath("video-add");
	}
	/**
	 * 编辑视频广告
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/videoEdit/{id}")
	public String videoEdit(Model model) {
		return getPagePath("video-edit");
	}
	/**
	 * 房产汽车列表
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/houseCarList")
	public String houseCarList(Model model) {
		return getPagePath("houseCar-list");
	}
	/**
	 * 添加房产汽车广告
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/houseCarAdd")
	public String houseCarAdd(Model model) {
		return getPagePath("houseCar-add");
	}
	/**
	 * 编辑房产汽车广告
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/houseCarEdit/{id}")
	public String houseCarEdit(Model model) {
		return getPagePath("houseCar-edit");
	}
	/**
	 * 房产汽车列表
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/jewelryList")
	public String jewelryList(Model model) {
		return getPagePath("jewelry-list");
	}
	/**
	 * 添加房产汽车广告
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/jewelryAdd")
	public String jewelryAdd(Model model) {
		return getPagePath("jewelry-add");
	}
	/**
	 * 编辑房产汽车广告
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/jewelryEdit/{id}")
	public String jewelryEdit(Model model) {
		return getPagePath("jewelry-edit");
	}
	/**
	 * 房产汽车列表
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/travelList")
	public String travelList(Model model) {
		return getPagePath("travel-list");
	}
	/**
	 * 添加房产汽车广告
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/travelAdd")
	public String travelAdd(Model model) {
		return getPagePath("travel-add");
	}
	/**
	 * 编辑房产汽车广告
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/travelEdit/{id}")
	public String travelEdit(Model model) {
		return getPagePath("travel-edit");
	}
	/**
	 * 分类格子铺列表
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/classifyproductList")
	public String classifyProductlList(Model model) {
		return getPagePath("classifyproduct-list");
	}
	/**
	 * 添加分类格子铺广告
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/classifyproductAdd")
	public String classifyProductAdd(Model model) {
		return getPagePath("classifyproduct-add");
	}
	/**
	 * 编辑分类格子铺广告
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/classifyproductEdit/{id}")
	public String classifyProductEdit(Model model) {
		return getPagePath("classifyproduct-edit");
	}
}
